package edu.sysu.cshare.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import edu.sysu.cshare.DAO.CourseDAO;
import edu.sysu.cshare.model.Course;

@Service
public class CourseService {
	
	private CourseDAO courseDAO;

	@Resource
	public void setCourseDAO(CourseDAO courseDAO) {
		this.courseDAO = courseDAO;
	}

	public List<Course> loadAll() {
		return courseDAO.loadAll();
	}

	public Course get(long id) {
		return courseDAO.get(id);
	}

}
